import 'package:flutter/material.dart';
import 'package:flutter_douban/main_page/home/video/video_page.dart';
import 'package:flutter_douban/tool_views/nav_title_page.dart';

class ClassVideoPage extends StatefulWidget {
  final String video_url;
  final String video_cover_height;
  final String video_cover_width;

  const ClassVideoPage(
      {Key? key,
      required this.video_url,
      required this.video_cover_width,
      required this.video_cover_height})
      : super(key: key);

  @override
  _ClassVideoPageState createState() => _ClassVideoPageState();
}

class _ClassVideoPageState extends State<ClassVideoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: NavTitlePage(titleStr: '视频详情',),
      ),
      body: Container(
        height: MediaQuery.of(context).size.height,
        child: Column(
          children: [
            VideoPage(
              video_url: widget.video_url,
              video_cover_height: widget.video_cover_height,
              video_cover_width: widget.video_cover_width,
            ),
          ],
        ),
      ),
    );
  }
}
